<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>cr-stylesheet: Libcroco Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Libcroco Reference Manual">
<link rel="up" href="ch01.html" title="Extensive APIs description">
<link rel="prev" href="libcroco-cr-style.html" title="cr-style">
<link rel="next" href="libcroco-cr-term.html" title="cr-term">
<meta name="generator" content="GTK-Doc V1.24 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libcroco-cr-stylesheet.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libcroco-cr-style.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libcroco-cr-term.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libcroco-cr-stylesheet"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libcroco-cr-stylesheet.top_of_page"></a>cr-stylesheet</span></h2>
<p>cr-stylesheet</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libcroco-cr-stylesheet.functions"></a><h2>Functions</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="returnvalue">CRStyleSheet</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-new" title="cr_stylesheet_new ()">cr_stylesheet_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-to-string" title="cr_stylesheet_to_string ()">cr_stylesheet_to_string</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-dump" title="cr_stylesheet_dump ()">cr_stylesheet_dump</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-nr-rules" title="cr_stylesheet_nr_rules ()">cr_stylesheet_nr_rules</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-statement-get-from-list" title="cr_stylesheet_statement_get_from_list ()">cr_stylesheet_statement_get_from_list</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-ref" title="cr_stylesheet_ref ()">cr_stylesheet_ref</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-unref" title="cr_stylesheet_unref ()">cr_stylesheet_unref</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-destroy" title="cr_stylesheet_destroy ()">cr_stylesheet_destroy</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libcroco-cr-stylesheet.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody><tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet">CRStyleSheet</a></td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libcroco-cr-stylesheet.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="libcroco-cr-stylesheet.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="cr-stylesheet-new"></a><h3>cr_stylesheet_new ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="returnvalue">CRStyleSheet</span></a> *
cr_stylesheet_new (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_stmts</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-to-string"></a><h3>cr_stylesheet_to_string ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
cr_stylesheet_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> const *a_this</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-dump"></a><h3>cr_stylesheet_dump ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_stylesheet_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> const *a_this</code></em>,
                    <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-nr-rules"></a><h3>cr_stylesheet_nr_rules ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
cr_stylesheet_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> const *a_this</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-statement-get-from-list"></a><h3>cr_stylesheet_statement_get_from_list ()</h3>
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
cr_stylesheet_statement_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_this</code></em>,
                                       <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-ref"></a><h3>cr_stylesheet_ref ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_stylesheet_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_this</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-unref"></a><h3>cr_stylesheet_unref ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
cr_stylesheet_unref (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_this</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="cr-stylesheet-destroy"></a><h3>cr_stylesheet_destroy ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cr_stylesheet_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_this</code></em>);</pre>
</div>
</div>
<div class="refsect1">
<a name="libcroco-cr-stylesheet.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="CRStyleSheet"></a><h3>CRStyleSheet</h3>
<pre class="programlisting">typedef struct {
	/**The css statements list*/
	CRStatement *statements ;

        enum CRStyleOrigin origin ;

        /*the parent import rule, if any.*/
        CRStatement *parent_import_rule ;

	/**custom data used by libcroco*/
	gpointer croco_data ;

	/**
	 *custom application data pointer
	 *Can be used by applications.
	 */
	gpointer app_data ;

	/**
	 *the reference count of this insance
	 *Please, don't never ever modify it
	 *directly. Use cr_stylesheet_ref()
	 *and cr_stylesheet_unref() instead.
	 */
	gulong ref_count ;
} CRStyleSheet;
</pre>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.24</div>
</body>
</html>